﻿
@{
    ViewData["Title"] = "RawmaterialtestingAddView";
    Layout = "~/Views/Home/Menu.cshtml";
}

<form class="layui-form" style="padding:20px;">
    <div class="layui-input-block">
        <button class="layui-btn layui-btn-primary" type="reset">取消</button>
        <button class="layui-btn" type="button" lay-submit lay-filter="demo-ddd">添加</button>
    </div>
    <table>
        <h2>质检信息</h2>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检编号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="qualityNumber" autocomplete="off" id="qualityNumber" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="qualityName" id="qualityName" autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检日期</label>
                    <div class="layui-input-block">
                        <input type="date" id="qualityDate" lay-verify="Date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检人</label>
                    <div class="layui-col-md6">
                        <input type="text" name="qualityPerson" id="qualityPerson" autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">供应商</label>
                    <div class="layui-col-md6">
                        <select name="vendor" id="vendor">
                        </select>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <table>
        <h2>原料信息</h2>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">原料编号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="ingredientNumber" autocomplete="off" id="ingredientNumber" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">原料名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="ingredientName" id="ingredientName" autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">单位</label>
                    <div class="layui-input-block">
                        <select name="unit" id="unit" required lay-verify="required">
                            <option value="">请选择单位</option>
                            <option value="个">个</option>
                            <option value="箱">箱</option>
                            <option value="件">件</option>
                            <option value="套">套</option>
                            <option value="台">台</option>
                        </select>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">规格型号</label>
                    <div class="layui-col-md6">
                        <select name="specification" id="specification" required lay-verify="required">
                            <option value="">请选择规格</option>
                            <option value="M8">M8</option>
                            <option value="M10">M10</option>
                            <option value="M12">M12</option>
                            <option value="M14">M14</option>
                            <option value="M16">M16</option>
                            <option value="M18">M18</option>
                            <option value="M20">M20</option>
                        </select>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">原料批次号</label>
                    <div class="layui-col-md6">
                        <input type="text" name="rawMaterialBatchNumber" id="rawMaterialBatchNumber" autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">尺寸</label>
                    <div class="layui-col-md6">
                        <select name="size" id="size" required lay-verify="required">
                            <option value="">请选择尺寸</option>
                            <option value="8mm">8mm</option>
                            <option value="10mm">10mm</option>
                            <option value="12mm">12mm</option>
                            <option value="14mm">14mm</option>
                            <option value="16mm">16mm</option>
                            <option value="18mm">18mm</option>
                            <option value="20mm">20mm</option>
                        </select>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <table>
        <h2>质检信息</h2>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检类型</label>
                    <div class="layui-input-inline">
                        <select name="typeOfQC" id="typeOfQC" required lay-verify="required">
                            <option value="">请选择质检类型</option>
                            <option value="数值">数值</option>
                        </select>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检方案</label>
                    <div class="layui-input-inline">
                        <input type="text" name="gualitySchemeName" id="gualitySchemeName" autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">质检状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="AAA" id="state" value="1" title="启用" lay-filter="demo-radio-filter" checked>
                        <input type="radio" name="AAA" id="state" value="0" lay-filter="demo-radio-filter" title="禁用">
                    </div>
                </div>
            </td>
        </tr>
        <div class="layui-form-item">
            <table class="layui-table" id="RawmaterialtestingTable" style="width:500px"></table>
        </div>
        
    </table>
</form>

<script src="~/js/rawmaterialtesting/rawmaterialtestingaddjs.js"></script>